using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using PageFlowQuickstart.Modules.Customers.Tests.Mocks;
using PageFlowQuickstart.Modules.Customers.Views;

namespace PageFlowQuickstart.Modules.Customers.Tests.Views
{
    /// <summary>
    /// Summary description for StartCustomersApprovalViewPresenterFixture
    /// </summary>
    [TestClass]
    public class StartCustomersApprovalViewPresenterFixture
    {
        [TestMethod]
        public void OnViewInitializedCallsControllerStartCustomersApproval()
        {
            MockCustomersController controller = new MockCustomersController();
            StartCustomersApprovalViewPresenter presenter = new StartCustomersApprovalViewPresenter(controller);

            presenter.OnViewInitialized();

            Assert.IsTrue(controller.StartCustomersApprovalCalled);
        }
    }
}
